<template>
  <van-swipe class="my-swipe" :autoplay="2000" indicator-color="#1989fa">
    <van-swipe-item v-for="(item, index) in banner" :key="item.id">
      <img :src="item.img_url" alt="" />
    </van-swipe-item>
  </van-swipe>
</template>

<script>
export default {
  props: ["banner"],
}
</script>

<style lang="less" scoped>
.my-swipe {
  img {
    width: 100%;
    height: 100vw;
    display: block;
  }
}
</style>
